package com.eamois.action.sys;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.graph.GraphTemplate;
import com.eamois.domain.sys.DifferentialMeaTemplate;
import com.eamois.domain.sys.MeaLine;
import com.eamois.service.sys.MeaLineService;
import com.eamois.util.ServiceFactory;

public class MeaLineAction extends BaseAction {
	private MeaLineService meaLineService;

	public MeaLineService getMeaLineService() {
		return meaLineService;
	}

	public void setMeaLineService(MeaLineService meaLineService) {
		this.meaLineService = meaLineService;
	}

	public MeaLineAction() {
		setMeaLineService((MeaLineService) ServiceFactory.getInstance()
				.getBean("meaLineService"));
	}
	
	public Collection<MeaLine> findGraphLineByTemplate(DifferentialMeaTemplate template,String isPublic) {
		return this.getMeaLineService().findGraphLineByTemplate(template,isPublic);
	}

	public Collection<MeaLine> findPageLines(DifferentialMeaTemplate template) {
		return this.getMeaLineService().findPageLines(template);
	}
	public void saveGraphLine(MeaLine graphLine) {
		getMeaLineService().save(graphLine);
	}

	public void removeGraphLine(MeaLine graphLine) {
		getMeaLineService().remove(graphLine);
	}


}
